package com.zyf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {

    private Integer nid;
    private Integer userid;
    private String ntitle;
    private String ncontext;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp ntime;

    private Userinfo userinfo;
}
